Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Function |matches

regex::|matches


Usage

|matches(text, regex)

Parameters

↳ text: string
↳ regex: string

Return

bool


Matches a string against a regex.

text is matched against regex, returns wether the match were successful or not.

The regex engine is Unicode-aware. Please refer to Regex Syntax in documentation for full syntax description.